<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 <%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
	response.setContentType("text/html;charset=UTF-8");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    
    <title>我的请假</title>
  <link rel="stylesheet" href="css/style.css" type="text/css"></link>
<script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
  <script type="text/javascript" src="js/win_center.js"></script>
  <script type="text/javascript" src="js/jquery-1.6.js">  </script>
  <script type="text/javascript" src="js/hidden.js"></script></head>
  <body>
  	<div class="topTitle">
  		<img src="images/main_28.gif"/>&nbsp;我的请假信息
  	</div>
  	<br/>
  	<div id="selectIno">
		<form action="toMyleaves" method="post">
			<table>
				<tr>
					<td class="select">
					 	申请时间： 从<input id="d5221" name="startDate" class="Wdate" type="text" onfocus="var d5222=$dp.$('d5222');WdatePicker({onpicked:function(){d5222.focus();},maxDate:'#F{$dp.$D(\'d5222\')}'});checkDate()" readonly="readonly" />
						至<input id="d5222" name="endDate" class="Wdate" type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'d5221\')}'});checkDate()" readonly="readonly"/>
						<input name="Submit" type="submit" class="buttonface" value="  查询  "/>
					</td>
				</tr>
			</table>
		</form>  	
  	</div>
  	<br/>
  	<div id="LeaveList">
  		<center>
  			<s:if test="%{leaves.size()==0}">没有你想查询的数据!</s:if>
  		</center>
  		<s:else>
  			<display:table decorator="org.displaytag.decorator.CheckboxTableDecorator" name="leaves"  requestURI="/toMyleaves" class="paging" defaultorder="descending" id="leave" pagesize="2">
  			<display:column property="employee.userName" title="请假人" headerClass="td_top" class="td_02"></display:column>
  			<display:column property="type" title="请假类别"  headerClass="td_top" class="td_02" sortable="true"></display:column>
  			<display:column property="startDate" format="{0,date,yyyy-MM-dd}" title="请假开始时间" headerClass="td_top" class="td_02">
  			</display:column>
  			<display:column property="endDate" format="{0,date,yyyy-MM-dd}" title="请假结束时间" headerClass="td_top" class="td_02">
  			</display:column>
  			<display:column title="审核状态" headerClass="td_top" class="td_02">
  			<c:if test="${leave.status=='1'}">未审核</c:if>
  			<c:if test="${leave.status=='2'}">已审核</c:if>
  			</display:column>
  			<display:column title="信息审核" paramId="id" paramProperty="leaveId" class="td_02" headerClass="td_top">
  				<a href="#" onclick="javascript:openwindow('toLeaveDetail?id=${leave.leaveId}','',700,400)">&nbsp;&nbsp;&gt;&gt;&gt; </a>
  			</display:column>
  			</display:table>
  		</s:else>
  	</div>
  </body>
</html>
